<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Product extends Model
{
    //
    protected $table = "product";
    public $timestamps = false;
    protected $primaryKey = "id";
    protected $guarded = ['id'];

    protected static $field = [
        'id' => '编号',
        'create_time' => '创建时间',
        'update_time' => '更新时间',
        'create_user' => '创建人',
        'update_user' => '更新人',
        'rank' => '权重',
        'name' => '产品名称',
        'category_id' => '产品分类',
        'title' => '产品标题',
        'keyword' => '产品关键词',
        'picture' => '产品导读图',
        'status' => '状态'
    ];

    public static function getField() {
        return self::$field;
    }
}
